package VN.EDU.IMIC.DEVELOPER.HATRUNGPHONG.Array_BTVN01;

import java.util.Scanner;

public class BTVN01_View {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
double[] bangdiem = new double[100];
int i=0;
double diem=0;
do{
	System.out.println("Nhập điểm:");
	Scanner sc = new Scanner(System.in);
	diem = sc.nextDouble();
	bangdiem[i] = diem;
	i++;
} 
while(diem>=0);


double[] bangdiem2 = new double[i-1];
System.arraycopy(bangdiem, 0, bangdiem2, 0, i-1);

for(int j=0;j<bangdiem2.length;j++){System.out.println(bangdiem2[j]);}


BTVN01_Models m_models = new BTVN01_Models();


System.out.println("số điểm trên tb: "+m_models.trentb(bangdiem2,5));


	}

}
